import * as http from '@/utils/http';
import * as env from '@/env.js';

export const login = (username,password)=>{
	return http.post('https://api.qy-cloud.cn/api/user/v1/account/login-user',{userName:username,password:password,authType:''},null,true);
};


export const loginByAc = (username,password)=>{
	return http.post('https://api.qy-cloud.cn/api/ac/oauth/token',{
		client_id:env.default.clientId,
		client_secret:'root123',
		grant_type:'password',
		username:username,
		password:password
		},'application/x-www-form-urlencoded',true);
};